import React, { Component } from 'react';
import { HashRouter, Route, Switch, BrowserRouter } from 'react-router-dom';
import DefaultLayout from './layout/defaultLayout/index';
import LoginUser from './layout/loginUser/index';
import Fathor from './pages/QianTaoRouter/Fathor';
import Children from "./pages/QianTaoRouter/children";
export default class RouterWrap extends Component {
    render() {
        return (
            <div id="router">
                {/* HashRouter：hash路由  BrowserRouter：history路由 */}
                <BrowserRouter>
                    <Switch>
                        <Route path="/" component={DefaultLayout} exact />
                        <Route path="/login" component={LoginUser} />
                        <Route path="/fathor" component={
                            <Fathor>
                                {/* <Route path='/children' component={Children}></Route> */}
                            </Fathor>
                        }></Route>
                    </Switch>
                </BrowserRouter>
            </div>
        )
    }
}